package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the EQUIP_STORAGE database table.
 * 
 */
@Entity
@Table(name="EQUIP_STORAGE")
@NamedQuery(name="EquipStorage.findAll", query="SELECT e FROM EquipStorage e")
public class EquipStorage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ESTORAGE_ID")
	private String estorageId;

	@Column(name="ESTORAGE_AGENT")
	private String estorageAgent;

	@Temporal(TemporalType.DATE)
	@Column(name="ESTORAGE_DATE")
	private Date estorageDate;

	@Column(name="ESTORAGE_KEEPER")
	private String estorageKeeper;

	@Column(name="ESTORAGE_STATE")
	private String estorageState;

	@Column(name="ESTORAGE_TYPE")
	private String estorageType;

	//bi-directional many-to-one association to EquipOrder
	@OneToOne
	@JoinColumn(name="EORDER_ID")
	private EquipOrder equipOrder;

	//bi-directional many-to-one association to Warehouse
	@ManyToOne
	@JoinColumn(name="WHOUSE_ID")
	private Warehouse warehouse;

	public EquipStorage() {
	}

	public String getEstorageId() {
		return estorageId;
	}

	public void setEstorageId(String estorageId) {
		this.estorageId = estorageId;
	}

	public String getEstorageAgent() {
		return this.estorageAgent;
	}

	public void setEstorageAgent(String estorageAgent) {
		this.estorageAgent = estorageAgent;
	}

	public Date getEstorageDate() {
		return this.estorageDate;
	}

	public void setEstorageDate(Date estorageDate) {
		this.estorageDate = estorageDate;
	}

	public String getEstorageKeeper() {
		return this.estorageKeeper;
	}

	public void setEstorageKeeper(String estorageKeeper) {
		this.estorageKeeper = estorageKeeper;
	}

	public String getEstorageState() {
		return this.estorageState;
	}

	public void setEstorageState(String estorageState) {
		this.estorageState = estorageState;
	}

	public String getEstorageType() {
		return this.estorageType;
	}

	public void setEstorageType(String estorageType) {
		this.estorageType = estorageType;
	}

	public EquipOrder getEquipOrder() {
		return this.equipOrder;
	}

	public void setEquipOrder(EquipOrder equipOrder) {
		this.equipOrder = equipOrder;
	}

	public Warehouse getWarehouse() {
		return this.warehouse;
	}

	public void setWarehouse(Warehouse warehouse) {
		this.warehouse = warehouse;
	}

}